package com.kaoker.system.dao;

import java.util.List;

import com.kaoker.system.entity.Section;

/**
 * 章节目录的管理Dao.
 * 
 * @author bladestone
 * @version 0.1 
 * 
 */
public interface ISectionDao {
	 public Long saveSection(Section section);
	 public void deleteSection(Long sectionId);
	 public void deleteSection(Section section);
	 public void deleteAllSection(List<Section> sections);
	  	 
	 /**
	  * get all the child section in a specified parent seciton.
	  * If it is a leaf section. List size will be 0.
	  * @param parentSection
	  * @return
	  */
	 public List<Section> getSubSections(Section parentSection);
	 public Section getSection(Long id);
	 	 
}
